package com.rohan.apps.mileagetracker.server.db.models;

import java.util.Date;

import javax.persistence.Entity;





@Entity
public class Reading extends BaseDataStoreObject {
	private AppUser owner;
	private Vehicle Vehicle;
	private long Odometer;
	private float GasPrice;
	private float GallonsFilled;
	private double latitude;
	private double longitude;
	private float MPG;
	private float CPM;
	private Date TimeStamp;
	public Reading(){
		//empty constructor
	}
	public Vehicle getVehicle() {
		return Vehicle;
	}
	public void setVehicle(Vehicle vehicle) {
		Vehicle = vehicle;
	}
	public float getGasPrice() {
		return GasPrice;
	}
	public void setGasPrice(float gasPrice) {
		GasPrice = gasPrice;
	}
	public long getOdometer() {
		return Odometer;
	}
	public void setOdometer(long odometer) {
		Odometer = odometer;
	}
	public float getGallonsFilled() {
		return GallonsFilled;
	}
	public void setGallonsFilled(float gallonsFilled) {
		GallonsFilled = gallonsFilled;
	}
	
	public float getMPG() {
		return MPG;
	}
	public void setMPG(float mPG) {
		MPG = mPG;
	}
	public float getCPM() {
		return CPM;
	}
	public void setCPM(float cPM) {
		CPM = cPM;
	}
	public Date getTimeStamp() {
		return TimeStamp;
	}
	public void setTimeStamp(Date timeStamp) {
		TimeStamp = timeStamp;
	}
	public AppUser getUser() {
		return owner;
	}
	public void setUser(AppUser user) {
		owner = user;
	}
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	
}
